import { SerializeStream } from "../../Framework/Serialize/SerializeStream";
import { MarshalException } from "../../Engine/RMI/MarshalException";
type int = number;
//class EItemUpdateOper
    
    export  class EItemUpdateOper
    {
        constructor(arg1: int)
        {
            
            this.__value = arg1;
            return;
        }

        public static convert(arg1: int): EItemUpdateOper
        {
            return new EItemUpdateOper(arg1);
        }

        public value(): int
        {
            return this.__value;
        }

        public __write(arg1: SerializeStream): void
        {
            arg1.writeByte(this.__value);
            return;
        }

        public static __read(arg1: SerializeStream): EItemUpdateOper
        {
            var loc1=arg1.readByte();
            if (loc1 < 0 || loc1 >= 31) 
            {
                throw new MarshalException();
            }
            return EItemUpdateOper.convert(loc1);
        }

        public static /* const */_EItemUpdateOperMakeHole: int=0;

        public static /* const */_EItemUpdateOperStrengthen: int=1;

        public static /* const */_EItemUpdateOperRefine: int=2;

        public static /* const */_EItemUpdateOperEmbedJewel: int=3;

        public static /* const */_EItemUpdateOperRemoveJewel: int=4;

        public static /* const */_EItemUpdateComposeJewel: int=5;

        public static /* const */_EItemUpdateOperRecast: int=6;

        public static /* const */_EItemUpdateOperAdvance: int=7;

        public static /* const */_EItemUpdateDecompose: int=8;

        public static /* const */_EItemUpdateRefreshPropCompose: int=9;

        public static /* const */_EItemUpdateOperMerge: int=10;

        public static /* const */_EItemUpdateUpdradePrefix: int=11;

        public static /* const */_EItemUpdateStrengthenShift: int=12;

        public static /* const */_EItemUpdateOperAdvanceColor: int=13;

        public static /* const */_EItemUpdatePetEquipRecast: int=16;

        public static /* const */_EItemUpdateMountAdvance: int=17;

        public static /* const */_EItemUpdateMountRefreshGrow: int=18;

        public static /* const */_EItemUpdateJewelAddance: int=19;

        public static /* const */_EItemUpdateWingMerge: int=20;

        public static /* const */_EItemUpdatePetEquipUpgradePrefix: int=21;

        public static /* const */_EItemUpdateMountFeed: int=22;

        public static /* const */_EItemUpdateMountMerge: int=23;

        public static /* const */_EItemUpdateEquipRefresh: int=24;

        public static /* const */_EItemUpdatePetEquipRefresh: int=25;

        public static /* const */_EItemUpdatePetEquipTransform: int=26;

        public static /* const */_EItemUpdateMountStarsCulture: int=27;

        public static /* const */_EItemUpdateOperPetEquipStrengthen: int=28;

        public static /* const */_EItemUpdateOperPetEquipAdvance: int=29;

        public static /* const */_EItemUpdateMountEquipUpgrade: int=30;

        public static /* const */_EItemUpdatePetEquipUpgradeStar: int=15;

        public static /* const */_EItemUpdateOperEquipSmelt: int=14;

        public /* var */__value: int;
    }
